-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test code refs #126 #291
base: devel
Are you sure you want to change the base?
Conversation
Hello, @somu15 , I deleted the banned keywords and pulled this new request, but it still fails. Would you like to show me the error messages at this time? Thank you. |
@somu15 , I tested this code in my PC, it works, why I still get the errors when I pull a request? Thank you. |
Please see the messages below. Are you referencing the right issue in your commits? ERROR: Your patch does not contain a valid ticket reference! (i.e. #1234) ERROR: The following files contain banned keywords (std::cout, std::cerr, sleep, print_trace): |
Also, if you'd like to know where your tests are failing, click on the failed check and login to CIVET using github (top). |
@HugoNip thanks for this hard work. A few comments.
|
@cbolisetti Hi, Chandu, thank you for your reply. As you say, I do use the banned keywords in comments because these parts are the printing related functions that are in the original c++ code. I think that's why the PR failed. I will remove them and try it later. Thank you very much. |
.vscode/settings.json
Outdated
@@ -0,0 +1,8 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this json file.
include/utils/QuantificationUtils.h
Outdated
#include "FaultTreeUtils.h" | ||
#include "MastodonUtils.h" | ||
|
||
#define CLIP(A, MIN, MAX) (((A) < MIN) ? MIN : ((A) > MAX ? MAX : (A))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make this a method.
include/utils/QuantificationUtils.h
Outdated
|
||
#define CLIP(A, MIN, MAX) (((A) < MIN) ? MIN : ((A) > MAX ? MAX : (A))) | ||
|
||
#define GEN_QUALIFICATION_R_VEC(gen, d, n, rv) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this a method as well.
include/utils/QuantificationUtils.h
Outdated
p_max = (p_max > (vec.size() - 1)) ? vec.size() : p_max; | ||
return vec[p_min - 1] + ((p_i - p_min) * (vec[p_max - 1] - vec[p_min - 1])); | ||
} | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this commented section is failing the PR because of the cout.
include/utils/QuantificationUtils.h
Outdated
{"NORM", NORM}, | ||
{"LNORM", LNORM}, | ||
{"PE", PE}, | ||
/*{"CHI_SQ" , CHI_SQ },*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove comments
src/utils/FaultTreeUtils.C
Outdated
FTAUtils::FaultTree::getRoot() | ||
/*!endpublic*/ { return _root; } | ||
|
||
/*!public*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove all the commented sections, eventually.
2. remove Utils.h 3. make macro #define a method 4. remove all commented sections 5. remove banned keywords
1. make macro #define a method 2. remove all commented sections 3. remove banned keywords
1. make macro #define a method 2. remove all commented sections 3. remove banned keywords
@HugoNip please follow the directions in the above comment and that will make style changes automatically. You should then push that commit. |
Job Precheck on 128b3d0 wanted to post the following: Your code requires style changes. A patch was auto generated and copied here
Alternatively, with your repository up to date and in the top level of your repository:
|
test QuantificationUtils.C, FaultTreeUtils.C